/*******************************************************************************
 * Copyright (c) 2014-8-17 @author <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a>.
 * All rights reserved.
 *
 * Contributors:
 *     <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a> - initial API and implementation
 ******************************************************************************/
package com.foreveross.project.projectonline.config;

/**
 * @author <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a> 
 * @since 2014-8-17
 */
public class Constants {

	/**
	 * form token
	 */
	public static final String NAME_TOKEN = "_token_";

	/**
	 * 默认存储时使用的key,将md5散列后的随机码保存至session，cookie时使用。
	 */
	public static final String DEFAULT_CAPTCHA_CODE_KEY = "_CAPTCHA_CODE_";

	/**
	 * SESSION中登录用户的用户名称
	 */
	public static final String SESSION_USER_KEY = "_SESSION_USER_KEY_";
	/**
	 * SESSION中登录用户的ID
	 */
	public static final String SESSION_USER_ID = "_SESSION_USER_ID_";
	/**
	 * before login url
	 */
	public static final String SESSION_LOGIN_BEFORE_URL = "_SESSION_LOGIN_BEFORE_URL_";

	/**
	 * Oauth类型变量名称，如：QQ,OSC,SYS（自有）
	 */
	public static final String OAUTH_TYPE_NAME = "_OAUTH_TYPE_NAME_";

	/**
	 * project file upload size
	 */
	public static final int FILE_SIZE_PROJECT = 1024 * 1024 * 15;
	/**
	 * project file upload size
	 */
	public static final int FILE_SIZE_COMPANY_PIC = 1024 * 1024 * 5;
}
